package com.pw.demo3.service.impl;

import com.pw.demo3.bean.RolePermission;
import com.pw.demo3.mapper.RolePermissionMapper;
import com.pw.demo3.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RolePermissionServiceImpl implements RolePermissionService {

    @Autowired
    RolePermissionMapper rolePermissionMapper;
    @Override
    public int insert(RolePermission record) {
        return rolePermissionMapper.insert(record);
    }

    @Override
    public List<RolePermission> selectAll() {
        return rolePermissionMapper.selectAll();
    }

    @Override
    public List<RolePermission> selectById(Long aLong) {
        return rolePermissionMapper.selectById(aLong);
    }

    @Override
    public int deleteById(Long id) {
        return rolePermissionMapper.deleteById(id);
    }
}